#include "task_model.h"


static TASKSTATE TASKAPI(Demo2TaskInit)(struct TaskModel_t *vtask){

	printf("Demo2TaskInit_name : %s \n",vtask->name);

    return vtask->state;
}

static TASKSTATE TASKAPI(Demo2TaskRun)(struct TaskModel_t *vtask){



    printf("Demo2TaskRun_name : %s ddddd\n",vtask->name);
    TASK_SET_DELAY(vtask, 200);
    return vtask->state;
}

static TASKSTATE TASKAPI(Demo2TaskWait)(struct TaskModel_t *vtask){

    
    
    // printf("Demo2TaskWait_name : %s \n",vtask->name);
    return vtask->state;
}

struct TaskModel_t demo2_task=
{
    "demo2_task", &TASKAPI(Demo2TaskInit), &TASKAPI(Demo2TaskRun), &TASKAPI(Demo2TaskWait), SSTATE_RUNNING, 200,
};